Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass bbox to changeset page via data attribute #5471

Merged
merged 4 commits into from
Jan 5, 2025

Conversation

AntonKhorev
Copy link
Collaborator

Fixes #4081 on /changeset/:id pages.

Previously changeset bbox was loaded using L.OSM.DataLayer. That requied additional http request. Also L.OSM.DataLayer assumed that all changesets have bounding boxes which is not true.

Do this instead of using L.OSM.DataLayer. DataLayer makes an extra request just to get the bbox. Also it expects bbox to always exist, which is not true for some changesets.
@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit 6e44415 into openstreetmap:master Jan 5, 2025
22 checks passed
@AntonKhorev AntonKhorev deleted the changeset-bounds branch January 6, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Javascript error when opening a page of a changeset without a bounding box
2 participants